﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;//

namespace EmotionRecognitionGui
{
    public partial class MainMenuExpert : MainMenu
    {
        GuiManager guiManager;
        public MainMenuExpert()
        {
            try
            {
                InitializeComponent();
                this.guiManager = GuiManager.Instance;
            }
            catch (Exception e)
            {
                MessageBox.Show("Error: " + e.ToString());
            }
        }

        
        protected void buttonBack_Click_1(object sender, EventArgs e)
        {
            guiManager.SwitchForms(this, guiManager.userLoginGui);
        }

        protected void updateLastImageButton_Click(object sender, EventArgs e)
        {
            guiManager.updateLastImages.ReEnter();
            guiManager.SwitchForms(this, guiManager.updateLastImages);

        }

        protected void buttonInitEndow_Click(object sender, EventArgs e)
        {//Call fiilEmotionCatergoty in next window

            guiManager.initialEndowmentGui.ReEnter();
            guiManager.SwitchForms(this, guiManager.initialEndowmentGui);
        }

        private void buttonBack_Click_2(object sender, EventArgs e)
        {
            guiManager.SwitchForms(this,guiManager.userLoginGui);
        }

        private void label6_Click(object sender, EventArgs e)
        {

        }

        private void button2_Click_1(object sender, EventArgs e)
        {
            guiManager.statistics.EnterStatistics(this);
            guiManager.statistics.LoadChart();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            guiManager.about.ReEnter(this);
        }

    }
}
